import request from '@/utils/request'

// 查询doctorInfo列表
export function listDoctorInfo(query) {
  return request({
    url: '/system/doctorInfo/list',
    method: 'get',
    params: query
  })
}

// 查询doctorInfo详细
export function getDoctorInfo(id) {
  return request({
    url: '/system/doctorInfo/' + id,
    method: 'get'
  })
}

// 新增doctorInfo
export function addDoctorInfo(data) {
  return request({
    url: '/system/doctorInfo',
    method: 'post',
    data: data
  })
}

// 修改doctorInfo
export function updateDoctorInfo(data) {
  return request({
    url: '/system/doctorInfo',
    method: 'put',
    data: data
  })
}

// 删除doctorInfo
export function delDoctorInfo(id) {
  return request({
    url: '/system/doctorInfo/' + id,
    method: 'delete'
  })
}
